<?php
	$mobile = $var["member"]["mobile"];
	$qq = $var["member"]["qq"];
	//联系人姓名
	$cname = $var["member"]["cname"];
	//企业名称
	$dname = $var["member"]["dname"];
	//店铺名称
	$com_name = $var["member"]["com_name"];
	$alipay = $var["member"]["alipay"];
	$email = $var["member"]["email"];
	$dtype = $var["member"]["dtype"];
	$com_type = $var["member"]["com_type"];

	$mobilereadonly = isset($mobile) ? "readonly" : "";
	$companynamereadonly = isset($mobile) ? "readonly" : "";
?>
<link rel="stylesheet" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<link rel="stylesheet" href="http://www.12301.cc/tpl/membercard/css/membercard.common.css"/>
<link rel="stylesheet" href="http://www.12301.cc/tpl/membercard/css/membercard.css"/>
<!--<script type="text/javascript" src="http://www.12301.cc/js/plugin/json2.js"></script>-->
<!--[if lt IE 7]><div id="memberCardContainer" class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6 memberCardContainer commonRigContainer"> <![endif]-->
<!--[if IE 7]><div id="memberCardContainer" class="lt-ie10 lt-ie9 lt-ie8 ie7 memberCardContainer commonRigContainer"> <![endif]-->
<!--[if IE 8]><div id="memberCardContainer" class="lt-ie10 lt-ie9 ie8 memberCardContainer commonRigContainer"> <![endif]-->
<!--[if IE 9]><div id="memberCardContainer" class="lt-ie10 ie9 memberCardContainer commonRigContainer"><![endif]-->
<!--[if gt IE 9]><!--><div id="memberCardContainer" class="memberCardContainer commonRigContainer"> <!--<![endif]-->
	<input type="hidden" name="" value="<?=$mobile?>" id="inpHid_mobile"/>
	<div id="tabHead" class="tabHead"><span class="tabNav active">会员信息</span><span class="tabNav">资质认证</span><span class="tabNav">会员卡信息</span></div>
	<div class="formContainer">
		<form id="registerForm">
			<input name="action" type="hidden" value="MemberRegister"/>
			<input name="actionType" type="hidden" value="register"/>
			<div class="topCond">
				<div class="d lt">
					<select name="dtype" id="memberTypeSelect" class="select">
						<option value="1">分销商</option>
						<option value="0">供应商</option>
						<option value="2">资源方</option>
					</select>
					<div class="inpBox">
						<span class="t">店铺名称</span>
						<div class="inpCon"><input type="text" class="valifyInp shopname" name="" id="shopname"/></div>
					</div>
					<p class="errortip"><i class="star">*</i><i class="t">必填项</i></p>
				</div>
				<div class="d rg" style="margin-left:1px">
					<select name="com_type" id="compTypeSelect" class="select">
						<option value="景区">景区</option>
						<option value="酒店">酒店</option>
						<option value="旅行社">旅行社</option>
						<option value="加盟店">加盟店</option>
						<option value="电商">电商</option>
						<option value="团购">团购</option>
						<option value="淘宝/天猫">淘宝/天猫</option>
						<option value="个人">个人</option>
						<option value="其它">其它</option>
					</select>
					<div id="companynameInpContainer">
						<div class="inpBox">
							<span class="t">企业名称</span>
							<div class="inpCon"><input name="company" type="text" <?=$companynamereadonly?> class="valifyInp companyname" name="" id="companyname"/></div>
						</div>
						<p class="warmtip">*必须和银地帐号名称相同，确认后不可修改</p>
					</div>
				</div>
			</div>
			<div class="formCon">
				<div class="formBox mobile">
					<div class="line">
						<span class="lt"><i class="star">*</i>手机号</span>
						<input type="text" name="mobile" <?=$mobilereadonly?> class="formInp valifyInp mobileInp" value="<?=$mobile?>" id="mobileInp" placeholder="请先输入手机号，再获取验证码"/>
						<span id="mobileInpErrorTxt" class="errortip mobile"><i class="iconfont">&#xe654;</i><i class="t">手机号格式错误</i></span>
						<p style="display:none" id="mobileExistTxt" class="mobileExistTxt"><i class="iconfont">&#xe654;</i><span class="t">此手机号已被注册为帐号 <a href="member_card.html?mobile=">编辑此帐号</a></span></p>
					</div>
					<div class="line">
						<span class="lt"><i class="star">*</i>验证码</span>
						<input type="text" class="formInp checkmaInp valifyInp" name="vcode" id="checkmaInp" placeholder="请输入6位数验证码"/>
						<a id="getCheckmaBtn" class="getCheckmaBtn" href="###">获取验证码</a>
						<span class="errortip ma"><i class="iconfont">&#xe654;</i><i class="t">请输入6位数验证码</i></span>
					</div>
					<div class="horLine"></div>
				</div>
				<div class="formBox ">
					<div class="line">
						<input name="sex" type="hidden" value=""/>
						<div id="famleWrap" class="famleWrap"><span class="fe lte active m" data-type="m">男</span><span class="fe rte f" data-type="f">女</span></div>
						<span class="lt"><i class="star">*</i>联系人姓名</span>
						<input type="text" value="<?=$cname?>" id="nameInp" class="formInp valifyInp nameInp" name="username" id="" placeholder="必填"/>
						<span class="errortip name"><i class="iconfont">&#xe654;</i><i class="t">必填项</i></span>
					</div>
					<div class="line">
						<span class="lt"><i class="star">*</i>邮箱</span>
						<input type="text" class="formInp valifyInp email" name="email" value="<?=$email?>" id="" placeholder="必填"/>
						<span class="errortip email"><i class="iconfont">&#xe654;</i><i class="t">邮箱格式错误</i></span>
					</div>
					<div class="line">
						<span class="lt">支付宝帐号</span>
						<input type="text" value="<?=$alipay?>" class="formInp" name="alipay" id=""/>
					</div>
					<div class="line">
						<span class="lt">QQ号</span>
						<input type="text" value="<?=$qq?>" class="formInp" name="qq" id=""/>
					</div>
					<? if(!isset($mobile)){ ?>
						<div class="horLine"></div>
					<?}?>
				</div>
				<? if(!isset($mobile)){ ?>
					<div class="formBox">
						<div class="line">
							<span class="lt"><i class="star">*</i>密码</span>
							<input type="password" class="formInp valifyInp passwordInp" name="password" id="passwordInp"/>
							<span class="errortip password"><i class="iconfont">&#xe654;</i><i class="t">必填项</i></span>
						</div>
						<div class="line">
							<span class="lt"><i class="star">*</i>确认密码</span>
							<input type="password" class="formInp valifyInp repasswordInp" name="confirmPwd" id="repasswordInp"/>
							<span class="errortip password"><i class="iconfont">&#xe654;</i><i class="t">两次输入密码不一致</i></span>
						</div>
					</div>
				<?}?>
				<div class="formBox buttonW">
					<div class="line">
						<span class="lt" style="visibility:hidden"></span><input class="readCheckbox" type="checkbox" name="" id="readCheckbox"/><label for="readCheckbox" class="readtxt">已阅读并同意<a href="http://www.12301.cc/Agreement.html">《票付通服务条款》</a></label>
						<p style="margin-left:104px; margin-top:2px;" class="errortip"><i class="iconfont">&#xe654;</i><i class="t">请确认是否同意</i></p>
					</div>
					<div class="line">
						<span class="lt" style="visibility:hidden"></span>
						<!--<input type="submit" class="saveBtn" id="saveBtn" value="下一步"/>-->
						<a id="saveBtn" class="saveBtn" href="#">下一步</a>
					</div>
				</div>
			</div>
		</form>
		<div id="formLoading" style="display:none" class="formLoading"><div class="con"><img src="http://www.12301.cc/images/icons/gloading.gif" alt=""/><span class="t">正在保存...</span></div></div>
	</div>













	<div id="gMask" class="gMask"></div>
</div>
<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
<script type="text/javascript" src="http://wx.12301.cc/public/js/common/class.js"></script>
<script type="text/javascript" src="http://www.12301.cc/tpl/membercard/js/membercard.register.js"></script>
